/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.fee.entity;

import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.modules.sys.entity.Office;

import javax.validation.constraints.NotNull;

/**
 * 付款单明细表Entity
 * @author weisong
 * @version 2017-09-20
 */
public class PaymentDetail extends DataEntity<PaymentDetail> {
	
	private static final long serialVersionUID = 1L;
	private Payment feePayment;		// 付款单
	private PayInvoice feePayInvoice;		// 应付发票
	private PayInvoiceDetail feePayInvoiceDetail;		// 应付发票明细
	private String invoiceNo;		// 发票号
	private Double invoiceMoney;		// 开票金额
	private Double vcaMoney;		// 已核销金额
	private Double theVcaMoney;		// 本次核销金额
	private Office logistics;		// 物流组织
	
	public PaymentDetail() {
		super();
	}

	public PaymentDetail(String id){
		super(id);
	}

	@ExcelField(title="付款单", align=2, sort=6)
	public Payment getFeePayment() {
		return feePayment;
	}

	public void setFeePayment(Payment feePayment) {
		this.feePayment = feePayment;
	}
	
	@ExcelField(title="应付发票", align=2, sort=7)
	public PayInvoice getFeePayInvoice() {
		return feePayInvoice;
	}

	public void setFeePayInvoice(PayInvoice feePayInvoice) {
		this.feePayInvoice = feePayInvoice;
	}
	
	@ExcelField(title="应付发票明细", align=2, sort=8)
	public PayInvoiceDetail getFeePayInvoiceDetail() {
		return feePayInvoiceDetail;
	}

	public void setFeePayInvoiceDetail(PayInvoiceDetail feePayInvoiceDetail) {
		this.feePayInvoiceDetail = feePayInvoiceDetail;
	}
	
	@ExcelField(title="发票号", align=2, sort=9)
	public String getInvoiceNo() {
		return invoiceNo;
	}

	public void setInvoiceNo(String invoiceNo) {
		this.invoiceNo = invoiceNo;
	}
	
	@NotNull(message="开票金额不能为空")
	@ExcelField(title="开票金额", align=2, sort=10)
	public Double getInvoiceMoney() {
		return invoiceMoney;
	}

	public void setInvoiceMoney(Double invoiceMoney) {
		this.invoiceMoney = invoiceMoney;
	}
	
	@NotNull(message="已核销金额不能为空")
	@ExcelField(title="已核销金额", align=2, sort=11)
	public Double getVcaMoney() {
		return vcaMoney;
	}

	public void setVcaMoney(Double vcaMoney) {
		this.vcaMoney = vcaMoney;
	}
	
	@NotNull(message="本次核销金额不能为空")
	@ExcelField(title="本次核销金额", align=2, sort=12)
	public Double getTheVcaMoney() {
		return theVcaMoney;
	}

	public void setTheVcaMoney(Double theVcaMoney) {
		this.theVcaMoney = theVcaMoney;
	}
	
	@ExcelField(title="物流组织", align=2, sort=13)
	public Office getLogistics() {
		return logistics;
	}

	public void setLogistics(Office logistics) {
		this.logistics = logistics;
	}
	
}